import defaultState from './state.js';

let Reducers = (state = defaultState, action) => {
    // console.log(state, action)
    switch (action.type) {
        case "CHANG_SHRINK_STATUS":
            return {
                ...state,
                isShrink: !state.isShrink
            }
        case "ADD_NUM":
            return {
                ...state,
                testNum: action.value
            }
        default:
            return state;
    }
}

export default Reducers;


